﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using Easy.Model;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Easy.Common;
using System.Data.Common;
using System.Data.SqlClient;
using System.Data;
using Easy.DAL;

namespace Easy.Operation.Data
{
    public class Publish
    {
        //private readonly SqlDatabase sqldb = new SqlDatabase(Config.TulingBuyCrmConnectString);
        public Publish() {

        }
        public string RetrievePublish(string entitylist)
        {
            if (string.IsNullOrWhiteSpace(entitylist))
            {
                throw new CustomException(CustomExceptionState.Other, "The paramter(entitylist) can not be null in RetrievePublish");
            }
            return JsonConvert.SerializeObject(RetrievePublish_List(entitylist));
        }
        public Dictionary<string, Object> RetrievePublish_List(string entitylist)
        {
            Dictionary<string, object> publishInfo = new Dictionary<string, object>();
            //DataSet ds = 
            return publishInfo;
        }
    }
}
